﻿using B.S.EventHandle.ErrorCode;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.SmartStorPro.Domain
{
    /// <summary>
    /// 单据类型表
    /// </summary>
    public class DocumentTypes
    {
        /// <summary>
        /// 单据ID-主键
        /// </summary>

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int DocumentID { get; set; }
        /// <summary>
        /// 类型名称 (1.移库上架 2.仓库移库 3.报损移库)
        /// </summary>
        /// 
        [MaxLength(50)]
        public string TypeName {  get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        public DocumentType Code { get; set; }
        /// <summary>
        /// 类型描述
        /// </summary>
        /// 
        [MaxLength(255)]
        public string Description { get; set; }
        /// <summary>
        /// 是否激活
        /// </summary>
        public bool IsActive { get; set; }
    }
}
